package com.ycl.plus.lm.auth;

import org.apache.dubbo.config.spring.context.annotation.EnableDubbo;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.boot.context.metrics.buffering.BufferingApplicationStartup;

/**
 * 认证授权中心
 *
 * @author ycl
 */
@EnableDubbo
@SpringBootApplication(exclude = {DataSourceAutoConfiguration.class})
public class LmAuth {
    public static void main(String[] args) {
        SpringApplication application = new SpringApplication(LmAuth.class);
        application.setApplicationStartup(new BufferingApplicationStartup(2048));
        application.run(args);
        System.out.println("(♥◠‿◠)ﾉﾞ  认证授权中心启动成功   ლ(´ڡ`ლ)ﾞ\n");
        System.out.println(
            """
                    (•̀ᴗ•́)و \\            / ￣へ￣`   \s
                    │       \\          /       │   \s
                    │   │\\   \\        /   /│   │   \s
                    │   │ \\   \\      /   / │   │   \s
                    │   │  \\   \\    /   /  │   │   \s
                    │   │   \\   \\  /   /   │   │   \s
                    │   │____\\   \\/   /    │   │   \s
                    │_________\\______/     │___│   \s
                """
        );
    }
}
